<form
  [formGroup]="form"
  (submit)="$event.preventDefault()"
>
  <formly-form
    (modelChange)="updateCfg($event)"
    [fields]="fields()"
    [form]="form"
    [model]="cfg()"
    [options]="options"
  >
  </formly-form>
</form>

<!--<pre><code>{{cfg()|json}}</code></pre>-->
